home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / jobs ƒ / dcmdheader.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  1.1 KB  |  34 lines  |  [TEXT/CWIE]

  1. /****************************************************************************************
  2. *    dcmdheader.c
  3. *
  4. *    Copyright © 1997-1998 Red Shed Software. All rights reserved.
  5. *    by Jonathan ‘Wolf’ Rentzsch (jon@redshed.net)
  6. *
  7. *    Make sure this file is the first file in the project.
  8. *
  9. *    I basically made up this code from trial-and-error since I couldn't find any
  10. *    CodeWarrior-based dcmd sample code. It may not work in all cases, but it works so
  11. *    far.
  12. *
  13. *    You'll need the dcmdGlue.a.o object file and Dcmd.h header file to compile this code.
  14. *    You can find it on the Developer Series Tool Chest CD in the MacsBug folder or maybe
  15. *    on the web.
  16. *
  17. *    Commenter    Date                Comment
  18. *    ---------    -----------------    -----------------------------------------------------
  19. *    wolf        Wed, Nov 5, 1997    Created.
  20. *    wolf        Tue, Nov 11, 1997    Made universal.
  21. *    
  22. ****************************************************************************************/
  23.  
  24. #include    "Dcmd.h"
  25.  
  26. extern    pascal    void    main(dcmdBlock* paramPtr);
  27. extern    void            __Startup__(void);
  28.  
  29. asm void __Startup__(void)
  30. {
  31.     dc.w    3        /*    version 3 dcmd */
  32.     dc.w    2048    /*    we want 2K of stack space */
  33.     jmp        main    /*    jump to the dcmd implementation */
  34. }